import { Checkbox } from 'antd';
class MyCheckBox extends React.Component {
  static defaultProps = {
    onChange: () => {},
  };
  render() {
    return (
      <Checkbox checked={this.props.value} onChange={this.props.onChange}>
        {this.props.text}
      </Checkbox>
    );
  }
}
export default MyCheckBox;
